﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Olemas.DataModels
{
    public class UserModel
    {
        [DisplayName("")]
        [Required(ErrorMessage = "*")]
        [RegularExpression(@"(\S)+", ErrorMessage = "*")]
        public string Name { get; set; }

        [DisplayName("")]
        [Required(ErrorMessage = "*")]
        [RegularExpression(@"(\S)+", ErrorMessage = "*")]
        public string Phone { get; set; }

        [DisplayName("")]
        [Required(ErrorMessage = "*")]
        [RegularExpression(@"(\S)+", ErrorMessage = "*")]
        public string Email { get; set; }

        [DisplayName("")]
        [Required(ErrorMessage = "*")]
        [RegularExpression(@"(\S)+", ErrorMessage = "*")]
        public string Password { get; set; }
    }
}